#!/bin/sh

while [ 1 ]

do

P=`N=twitter.com ;dig +trace $N | grep 'com.' | grep -v $N | wc -l`

if [ "$P" != "0" ]

then

#这里正常，则显示当前时间

date

fi

sleep 10

done
